package com.joven.shelltest.utils.funcinterface;

import com.joven.shelltest.dto.DealMessageDto;
import com.joven.shelltest.dto.ResultDto;

/**
 * @author wzj
 * @since 2024/11/1 15:10
 */
public class TestFunc {
    public static void main(String[] args) {
        DealMessageDto msg = new DealMessageDto();
        msg.setMessage("transform success");
        msg.setStatus("200");
        msg.setDealMethod("deal");
        ResultDto result = DataProcessor.processData(msg, DataProcessor::convertToStudent);
        System.out.println(result);
    }
}
